package cn.kxm.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
/*
 * 入库单
 */

public class InstroageBill implements Serializable{

	/** 
	* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
	*/ 
	private static final long serialVersionUID = 1L;
	private String code;
	private String customName;//供应商
	private String linkman;//联系人
	private String phone;
	@JSONField(format="yyyy-MM-dd")
	private Date instroageDate;//入库时间
	private double money;//总金额
	private String memo;
	private int instroageType;//入库类型
	private int payStatus;//支付状态
	private List<InstroageBillDetail> instroageBillDetails;//详情集合
	private int bamount;//入库总数量
	private Integer checkStatus;
	
	public Integer getCheckStatus() {
		return checkStatus;
	}
	public void setCheckStatus(Integer checkStatus) {
		this.checkStatus = checkStatus;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCustomName() {
		return customName;
	}
	public void setCustomName(String customName) {
		this.customName = customName;
	}
	public String getLinkman() {
		return linkman;
	}
	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Date getInstroageDate() {
		return instroageDate;
	}
	public void setInstroageDate(Date instroageDate) {
		this.instroageDate = instroageDate;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public int getInstroageType() {
		return instroageType;
	}
	public void setInstroageType(int instroageType) {
		this.instroageType = instroageType;
	}
	public int getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(int payStatus) {
		this.payStatus = payStatus;
	}
	
	public List<InstroageBillDetail> getInstroageBillDetails() {
		return instroageBillDetails;
	}
	public void setInstroageBillDetails(
			List<InstroageBillDetail> instroageBillDetails) {
		this.instroageBillDetails = instroageBillDetails;
	}
	
	public int getBamount() {
		return bamount;
	}
	public void setBamount(int bamount) {
		this.bamount = bamount;
	}
	public InstroageBill() {
		super();
	}
	public InstroageBill(String code, String customName, String linkman,
			String phone, Date instroageDate, double money, String memo,
			int instroageType, int payStatus) {
		super();
		this.code = code;
		this.customName = customName;
		this.linkman = linkman;
		this.phone = phone;
		this.instroageDate = instroageDate;
		this.money = money;
		this.memo = memo;
		this.instroageType = instroageType;
		this.payStatus = payStatus;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "InstroageBill [code=" + code + ", customName=" + customName + ", linkman=" + linkman + ", phone="
				+ phone + ", instroageDate=" + instroageDate + ", money=" + money + ", memo=" + memo
				+ ", instroageType=" + instroageType + ", payStatus=" + payStatus + "]";
	}

	
}
